package com.haochen.springgatewaydemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author: zhangquancheng
 * @Description: 熔断降级
 */

@RestController
public class FallbackController {

    @GetMapping("/fallbackA")
    public Map<String,String> fallbackA() {
        Map<String,String> response = new HashMap<>();
        response.put("code","100");
        response.put("message","服务暂时不可用");
        return response;
    }
}
